package com.fow.core.platform.sms.ali.message;

/**
 * Created by Greg.chen on 2016-03-14.
 * 通用的发送短信验证码
 */
public class CaptchaMessage {
    private String code;

    private String product;

    public String getCode() {
        String captcha = "";
        for (int i = 0; i < 6; i++) {
            captcha += (int) (Math.random() * 10);
        }
        return captcha;
    }

    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public CaptchaMessage(String product){
        this.setProduct(product);
    }

}
